import base64
from email.mime import base
from osgeo import ogr
from base64 import b64encode,b64decode

point = ogr.Geometry(ogr.wkbPoint)
point.AddPoint(119.5,35.5)
wkb = base64.encodebytes(point.ExportToIsoWkb())

wkb_ = b'AAAAA+lAXeAAAAAAAEBBwAAAAAAAAAAAAAAAAAA='

point_ = base64.b64decode(wkb)
print(ogr.CreateGeometryFromWkb(wkb_))

"""
    b"xxxx" 是二进制类型，对应wkb
    "xxxxx" 是文本字符串类型，对应wkt
"""